#include "SourceSketcher.h"

#include <iostream>

SourceSketcher::SourceSketcher(Source * source)
{
	this->source = source;
}

SourceSketcher::~SourceSketcher(void)
{
}

void SourceSketcher::draw()
{
	Color* lineColor = this->source->getLineColor();
	Color* backgroundColor = this->source->getElementColor();
	Texture * texture = this->source->getTexture();
	Position * position = this->source->getPosition();
	float radius = this->source->getRadius();

	if(texture != NULL)
	{
		SketcherHelper::getInstance()->drawCircle(position, radius, texture, lineColor);
	}
	else
	{
		SketcherHelper::getInstance()->drawCircle(position, radius, backgroundColor, lineColor);
	}
}
